import QtQuick 2.5
import QtQuick.Dialogs 1.2
import QtQuick.Controls 1.4

Dialog{
    id:errorDialog
    property string errorStr;
    contentItem:Rectangle{
        implicitHeight: 400
        implicitWidth: 600
        color:"#bb9010"
        TextArea{
            anchors.fill: parent
            text:errorStr
            backgroundVisible: true
            font.pointSize: 25
            textColor: "#303030"
        }
        StateBnt{
            anchors.bottom: parent.bottom
            anchors.horizontalCenter: parent.horizontalCenter
            anchors.bottomMargin: 20
            bntText: "关闭"
            onBntClicked: errorDialog.close();
        }
    }
}
